package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.draw.activity.PropTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 奖池明细表
 */
@Data
@NoArgsConstructor
@TableName(value = "sc_mall_draw_activity_prize_pool_detail")
public class MallDrawActivityPrizePoolDetail extends SuperEntity implements Serializable {

    /**
     * 奖池ID
     */
    @TableField(value = "pool_id")
    private Long poolId;

    /**
     * 奖品序列
     */
    @TableField(value = "detail_index")
    private Integer detailIndex;

    /**
     * 奖项类型0无 1权益道具 2星球碎片
     */
    @TableField(value = "prop_type")
    private PropTypeEnum propType;

    /**
     * 道具名称
     */
    @TableField(value = "prop_name")
    private String propName;

    /**
     * 道具id
     */
    @TableField(value = "prop_id")
    private Long propId;

    /**
     * 道具图片
     */
    @TableField(value = "prop_img")
    private String propImg;

    /**
     * 单份奖品数量
     */
    @TableField(value = "prize_count")
    private Integer prizeCount;

    /**
     * 剩余奖品数
     */
    @TableField(value = "remaining_prize_count")
    private Integer remainingPrizeCount;

    /**
     * 总奖品数量
     */
    @TableField(value = "total_prize_count")
    private Integer totalPrizeCount;

    /**
     * 中奖概率（权重）
     */
    @TableField(value = "probability")
    private BigDecimal probability;

    /**
     * 是否自动补库
     */
    @TableField(value = "auto_replenishment_enabled")
    private Boolean autoReplenishmentEnabled;

    /**
     * 自动补库json
     */
    @TableField(value = "auto_replenishment_json")
    private String autoReplenishmentJson;
}